package com.acme;


public class Test {
	public static void main(String[] args) {
		int v1 = 3;
		byte v2 = (byte) v1;
		/* type byte is less then int
*/
		System.out.println(v2);
		v1 = 256;
		byte v3 = (byte)v1;
		System.out.println(v3);
		int v4 = 's';
		System.out.println(v4);
		
		byte v5 = 115;
		if (v5 == 's') {
			System.out.println("Equals");
		}
		
		/* symbol 's' is 115 in ASCI. 
		 * if we put char in int we'll get number of this symbol in ASCI.
		 * so 'Equals' will be printed on the screen.
*/
		System.out.println((double)4);
		
		/* 4 is int (default) so if we reorganize it to double we'll get 4.0
*/
		double d = 5;
		System.out.println(d + 1);
		
		/*boolean b = v4; can't be reorganized in any other type 
		 * & can have only a value true or false
*/		
		short[] v6 = {'s','h','o','r','t'}; 
		/* short is numeric type, "short' is a string 
		 * & string can't be converted into short
*/		
		float v7 = 3.67f; 
		/* default value is double, float is less then double. 
		 * in this case 'f' should be added
*/		
		float v9 = 3;
/* default value is int it's less then float 
 * so we easily can reorganize 3 to float
*/
		int v8 = (int)v7; 
/* v7 is float it's bigger then int
*/
		int array[] = new int [27];
		/* we declared array with type int, so it couldn't be double. 
		 * "27" is a string.
*/
	}
}